package com.huaxin.common.Entity;

import java.util.ArrayList;
import java.util.List;

/**
 * 工艺图数据对象 [{"createTime":1410254487000,"fileCode":"20140909172126","imgPath":
 * "/uploads/mvg/4ZID9K/20140909172126.png" http://192.168.0.7:58085/uploads/mvg/L3O6WG/2013032201025.png
 * ,"mvgPath":"/uploads/mvg/4ZID9K/20140909172126.mvg"
 * ,"orgName":"4ZID9K","viewId":39,"viewName":"月湖泵站"}]
 */
public class SvgEntity {
	public static SvgEntity test1 = new SvgEntity(1410254487000l,"20140909172126","/uploads/mvg/4ZID9K/20140909172126.png",
			"/uploads/mvg/4ZID9K/20140909172126.mvg","4ZID9K",39,"月湖泵站");
	public static SvgEntity test2 = new SvgEntity(1410254487000l,"20140909172126","/uploads/mvg/4ZID9K/20140909172126.png",
			"/uploads/mvg/4ZID9K/20140909172126.mvg","4ZID9K",38,"黄家湖泵站");
	private long createTime;// 文件最后更新时间，用于本地存储判断
	private String fileCode;
	private String imgPath;// 缩略图下载地址
	private String mvgPath;// SVG下载地址
	private String orgCode;
	private int viewId;// SVG Id
	private String viewName;// SVG名称
	private static List<SvgEntity> testList;

	public SvgEntity(long createTime, String fileCode, String imgPath, String mvgPath, String orgCode, int viewId, String viewName) {
		this.createTime = createTime;
		this.fileCode = fileCode;
		this.imgPath = imgPath;
		this.mvgPath = mvgPath;
		this.orgCode = orgCode;
		this.viewId = viewId;
		this.viewName = viewName;
	}

	public static List<SvgEntity> getTestList() {
		List<SvgEntity> list = new ArrayList<SvgEntity>();
		list.add(test1);
		list.add(test2);
		return list;
	}

	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}

	public String getFileCode() {
		return fileCode;
	}

	public void setFileCode(String fileCode) {
		this.fileCode = fileCode;
	}

	public String getImgPath() {
		return imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	public String getMvgPath() {
		return mvgPath;
	}

	public void setMvgPath(String mvgPath) {
		this.mvgPath = mvgPath;
	}

	public String getOrgCode() {
		return orgCode;
	}

	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}

	public int getViewId() {
		return viewId;
	}

	public void setViewId(int viewId) {
		this.viewId = viewId;
	}

	public String getViewName() {
		return viewName;
	}

	public void setViewName(String viewName) {
		this.viewName = viewName;
	}

}
